package com.spring.cloud.enums;

/**
 * SuccessMsgEnum
 *
 * @author suguolin
 */
public enum SuccessMsgEnum implements BusinessMessage {

    /**  成功 */
    S0(0,"操作成功"),

    S10010(10010,"查询成功"),
    S10002(10002,"列表查询成功"),
    S10003(10003, "删除成功"),
    S10004(10004,"还原成功"),
    S10007(10007, "信息查询成功"),
    S10008(10008, "详情查询成功"),
    S10606(10606,"新增成功"),
    S10607(10607,"修改成功"),
    S11519(11519, "发送成功"),
    S11400(11400, "登录成功"),
    S10006(10006,"上传成功"),
    S10009(10009,"校验成功");

    /**  编号 */
    private Integer code;

    /**  信息 */
    private String msg;

    SuccessMsgEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
